package koala.kuangjiademo.data;


import com.wwgps.ect.util.pinin.PinyinUtils;

import java.io.Serializable;
import java.util.List;

public class Contact implements Serializable {
    public String updatedate;
    public String updateby;
    public String employeetype;
    public String oauserid;
    public String showorder;
    public String act_id;
    public String act_status;
    public String employeecode;
    public String employeename;
    public String employeenamepy;
    public String gender;
    public String dateofbirth;
    public int positionid;
    public int deptid;
    public int userid;
    public String superiorcode;
    public String tel;
    public String mobile;
    public String email;
    public String fax;
    public String emplevel;
    public String isenable;
    public String isgroupleader;
    public String iscompanyleader;
    public String isdeptleader;
    public String wechatid;
    public String standardheadiconpath;
    public String headiconpath;
    public String createdate;
    public String createby;
    public int ID;
    public String groupname;
    public String employeetypename;
    public String deptname;
    public String R;
    public String username;
    public String positionname;

    //用于姓名首字母排序
    public String letterIndex;
    public String pinyin;

    public String getLetterIndex() {
        return String.valueOf(PinyinUtils.getPinyin(employeename).charAt(0));
    }

    public void setLetterIndex(String letterIndex) {
        this.letterIndex = letterIndex;
    }

    public String getPinyin() {
        return PinyinUtils.getPinyin(employeename);
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public static class Data implements Serializable {
        public List<Contact> records;
    }

    public static class Response extends ResponsePacket<Data> {

    }
}
